<include file="public:header" />

<div class="container">
    <h4 class="webview-title">{$store.name}</h4>
    <hr />
    <fieldset disabled>
        <input type="hidden" name="storeId" value="{$store.id}" />
        <volist name="table" id="v">
            <div class="form-group">
                <label>{++$key}. {$v.name}</label>
                <if condition="$v['type'] eq 'text'">
                    <input type="text" name="v[{$v.id}]" class="form-control" value="{$v.value}" id="v_{$v.id}" placeholder="0">
                </if>
				<if condition="$v['type'] eq 'radio'">
					<volist name="v.rules.choices" id="radio">
						<div class="radio">
							<label>
								<input type="radio" name="v[{$v.id}]" id="optionsRadios{$v.id}" value="{$radio.value}" {$v['value'] == $radio['value'] ? ' checked' : ''}>
							{$radio.txt}
							</label>
						</div>
					</volist>
                </if>
				<if condition="$v['type'] eq 'checkbox'">
					<volist name="v.rules.choices" id="checkbox">
						<div class="checkbox">
							<label>
							<input type="checkbox" name="v[{$v.id}]" id="checkbox{$v.id}" value="{$checkbox.value}" {$v['value'] == $checkbox['value'] ? ' checked' : ''}>
							{$checkbox.txt}
							</label>
						</div>
					</volist>
                </if>
				<if condition="$v['description']">
                <span class="help-block"><pre>{$v.description}</pre><span>
				</if>
            </div>
        </volist>
	</fieldset>
	<p>&nbsp;</p>
	<p>&nbsp;</p>
</div>

<include file="public:footer" />